package com.ruoyi.system.api.factory;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.RemoteQYPyqService;
import com.ruoyi.system.api.model.LoginUser;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;

/**
 * 企业微信登录服务降级处理
 *
 * @author ruoyi
 */
@Component
public class RemoteQYPyqFallbackFactory implements FallbackFactory<RemoteQYPyqService>
{
    private static final Logger log = LoggerFactory.getLogger(RemoteQYPyqFallbackFactory.class);

    @Override
    public RemoteQYPyqService create(Throwable throwable)
    {
        log.error("企业微信朋友圈服务调用失败:{}", throwable.getMessage());
        return new RemoteQYPyqService()
        {


            @Override
            public String get_sns_record(HashMap<String, List<HashMap<String, Object>>> map) {
                return null;
            }

            @Override
            public String set_cover(HashMap<String, List<HashMap<String, Object>>> map) {
                return null;
            }

            @Override
            public String set_sign(HashMap<String, List<HashMap<String, Object>>> map) {
                return null;
            }

            @Override
            public String post_sns(HashMap<String, List<HashMap<String, Object>>> map) {
                return null;
            }

            @Override
            public String delete_sns(HashMap<String, List<HashMap<String, Object>>> map) {
                return null;
            }

            @Override
            public String sns_like(HashMap<String, List<HashMap<String, Object>>> map) {
                return null;
            }

            @Override
            public String sns_comment(HashMap<String, List<HashMap<String, Object>>> map) {
                return null;
            }

            @Override
            public String get_sns_detail(HashMap<String, List<HashMap<String, Object>>> map) {
                return null;
            }

            @Override
            public String delete_sns_comment(HashMap<String, List<HashMap<String, Object>>> map) {
                return null;
            }
        };
    }
}
